home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
DATACH.CST
/
00280_Script_bar hourspop
< prev
next >
Wrap
Text File
|
1999-03-07
|
2KB
|
60 lines
property thePopLocv, popSpritev, popNamev, mySpritev, fieldObjv
global currentChartName, popbgSpritev
on new me
set mySpritev = the spriteNum of me
set popSpritev = mySpritev + 1
set popbgSpritev = mySpritev - 3
set right = the right of sprite (mySpritev - 2)
set top = the top of sprite (mySpritev -2)
set thePopLocv = point(right, top)
set popNamev = "hours_field"
puppetSprite popSpritev, true
-- set faraway = point(-1000, -1000)
set the loc of sprite popSpritev = point(-1000, -1000)
return me
end
on register me, theObj
set fieldObjv = theObj
end
on mouseDown me
set the member of sprite popSpritev = member popNamev
set the loc of sprite popSpritev = thePopLocv
set the member of sprite popbgSpritev = member popNamev
set the loc of sprite popbgSpritev = thePopLocv
-- put "popped - " & thepoploc
updateStage
repeat while the stillDown
checkIfInsidev fieldObjv
end repeat
set the loc of sprite popSpritev = point(-1000, -1000)
set the loc of sprite popbgSpritev = point(-1000, -1000)
set name = getPlaneNamev(fieldObjv)
if name = "" then
nothing
else
set the text of field "bar_hours" = name
mainbars
set xname = the text of field "displane"
if length(xname) > 3 then compbars xname
end if
set the loc of sprite popSpritev = point(-1000, -1000)
set the loc of sprite popbgSpritev = point(-1000, -1000)
updateStage
end
on mouseUp me
nothing
end